<!doctype html>
<html lang="zh">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE11" />
    <title>{{$data.title}}</title>
    <meta name="keywords" content="{{$data.title}}" />
    <meta name="description" content="{{$data.title}}" />
    <meta name="LinkArtifact" content="7000c2fd0c1eff6fc7c2d4b66ac23916">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <!-- QQ互联 -->
    <meta property="qc:admins" content="3566762547627031606375" />
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>

    <style type="text/css">
        body {
            _behavior: url({{$smarty.const.APP_URL}}resource/htc/csshover.htc);
        }
    </style>

    <link href="{{$smarty.const.APP_URL}}templates/default/css/base.css" rel="stylesheet" type="text/css">
    <link href="{{$smarty.const.APP_URL}}templates/default/css/home_header.css" rel="stylesheet" type="text/css">
    <link href="{{$smarty.const.APP_URL}}templates/default/css/home_login.css" rel="stylesheet" type="text/css">
    <link href="{{$smarty.const.APP_URL}}templates/default/css/index-new.css" rel="stylesheet" type="text/css">
    <link href="{{$smarty.const.APP_URL}}data/resource/font/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="{{$smarty.const.APP_URL}}templates/default/css/user_center/purchase_release.css" rel="stylesheet" type="text/css">
    <link href="{{$smarty.const.APP_URL}}templates/default/css/user_center/supply_index.css" rel="stylesheet" type="text/css">
    <!--[if IE 7]>
    <link rel="stylesheet" href="{{$smarty.const.APP_URL}}data/resource/font/font-awesome/css/font-awesome-ie7.min.css">
    <![endif]-->
    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="{{$smarty.const.APP_URL}}data/resource/js/html5shiv.js"></script>
    <script src="{{$smarty.const.APP_URL}}data/resource/js/respond.min.js"></script>
    <![endif]-->
    <!--[if IE 6]>
    <script src="{{$smarty.const.APP_URL}}data/resource/js/IE6_PNG.js"></script>
    <script>
        DD_belatedPNG.fix('.pngFix');
    </script>
    <script>
        // <![CDATA[
if((window.navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0)&&(document.execCommand))
try{
document.execCommand("BackgroundImageCache", false, true);
   }
catch(e){}
// ]]>
</script>
<![endif]-->
    <script>
        var COOKIE_PRE = 'BC18_';var _CHARSET = 'utf-8';var SITEURL = 'http://zhaojinyin.cc';var RESOURCE_URL = 'http://zhaojinyin.cc/data/resource';var TEMPLATES_URL = 'http://zhaojinyin.cc/templates/default';
    </script>
    <script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.js"></script>
    <script src="{{$smarty.const.APP_URL}}data/resource/js/common.js" charset="utf-8"></script>
    <script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/ui/$.ui.js"></script>
    <script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.validation.min.js"></script>
    <script src="{{$smarty.const.APP_URL}}data/resource/js/jquery/$.masonry.js"></script>
    <!--<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>-->
    <script src="{{$smarty.const.APP_URL}}data/resource/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>
    <script type="text/javascript">
    <!-- 左侧下拉列表箭头变化jq -->
    $(document).ready(function(){
        $(".wrap-menu-li1").click(function(){
            //$(this).css("background-position","180px top");
            if($(this).css("background-position")=='180px 100%'){
                    $(this).css("background-position","180px top");
                }
            else {
                    $(this).css("background-position","180px bottom");
                };
        });
    });
    <!-- 右侧内容隐藏下拉列表jq -->
    $(document).ready(function(){
        $(".biaoti_1").click(function(){
        $(".xuanze_2_hide").toggle(1000);
        });
    });
</script>
</head>
<body style="min-width: 1200px;">
<!--会员中心头部start-->
{{include file="{{$smarty.const.APP_PATH}}Home/View/User_center/user_center_header.html"}}
<!--会员中心头部end-->
<!-- 本页头部start -->
{{include file="{{$smarty.const.APP_PATH}}Home/View/User_center/user_center_top.html"}}
<!--本页头部end-->
<!-- 中间内容 -->
<section>
	<div id="main">
		<!-- 左边start -->
		{{include file="{{$smarty.const.APP_PATH}}Home/View/User_center/user_center_lefter.html"}}
		<!--左边end-->

        <!-- 右边 -->
        <div class="main_right">
            <div class="main_title">
                <p>报价清单</p>
                <!--<div class="top_input"><a href="/user_center/supply_batch_list">批量报价清单</a></div>-->
                <div class="top_input"><a href="/user_center/supply_add">添加单条报价</a></div>
            </div>
            <!-- <div class="main_input">
                <form>
                    <div class="sousuo"><a href="#"><img src="{{$smarty.const.APP_URL}}templates/default/images/user_center/sousuo_icon_03.png"/>搜索</a></div>
                    <input type="text" class="changping" value="请输入产品标题/货号">
                    <select class="neirong"><option>不限</option><option>采购</option><option>下架</option></select>
                </form>
            </div> -->
            <div class="main_cen mt20">
                <div class="main_c_top">
                    <ul>
                        <li style="width: 400px; text-align: center">商品</li>
                        <li style="width: 100px; text-align: center">浏览次数</li>
                        <li style="width: 100px; text-align: center">状态</li>
                        <li style="width: 100px; text-align: center">跟进交易员</li>
                        <li style="width: 100px; text-align: center">操作</li>
                    </ul>
                </div>
                {{foreach from=$supply_list item=i}}
                <div class="main_c_1">
                    <ul>
                        <li style="width: 400px; text-align: left"><div style="float: left"><a href="javascript:void(0);"><img src="{{$i.supply_image}}" width="64" height="64"></a></div><div style="float: left; padding-top: 8px;">{{$i.brand_name}} {{$i.supply_price}}(元/{{$i.unit_name}}) 现货/标准货</div></li>
                        <li style="width: 100px; text-align: center">{{$i.supply_views}}</li>
                        <li style="width: 100px; text-align: center">{{$i.match_state_name}}</li>
                        <li style="width: 100px; text-align: center">{{$i.admin_truename}}<br />{{$i.admin_mobile}}</li>
                        {{if !$i.match_state_id||$i.match_state_id==1}}<li style="width: 100px; text-align: center"><a href="/user_center/supply_edit/id/{{$i.supply_id}}">编辑</a>/<a href="javascript:void(0);supply_del({{$i.supply_id}});">删除</a></li>{{/if}}
                    </ul>
                </div>
                {{/foreach}}
            </div>
            <div style="clear: both;margin: 20px 0;text-align: center; height: 28px;padding-bottom: 40px; padding-top: 15px; width: 885px;">
                <a href="/user_center/supply_list" style="width: auto;">
                    <span style="padding: 4px 8px;border: 1px solid #aaa;margin:0 5px;">首页</span>
                </a>
                {{if $pager.current_page>$pager.last_page}}
                <a href="/user_center/supply_list">
                    <span style="padding: 4px 8px;border: 1px solid #aaa;margin:0 5px;">上一页</span>
                </a>
                {{/if}}
                {{if $pager.current_page<=10&&$pager.page_total<=10}}
                {{section name=loop loop=$pager.page_total}}
                <a href="/user_center/supply_list/page/{{$smarty.section.loop.index+1}}">
                    <span {{if $smarty.section.loop.index+1==$pager.current_page}}style="color:#fff;background:#FF6E03;border:#FF6E03;padding:4px 8px;margin:0 5px;"{{else}}style="padding: 4px 8px;border: 1px solid #aaa;margin:0 5px;"{{/if}}>{{$smarty.section.loop.index+1}}</span>
                </a>
                {{/section}}
                {{else if $pager.current_page>10&&$pager.current_page+10<$pager.page_total}}
                {{section name=loop loop=$pager.current_page+10 start=($pager.current_page/10)|string_format:"%d"*10}}
                <a href="/user_center/supply_list/page/{{$smarty.section.loop.index+1}}">
                    <span {{if $smarty.section.loop.index+1==$pager.current_page}}style="color:#fff;background:#FF6E03;border:#FF6E03;padding:4px 8px;margin:0 5px;"{{else}}style="padding: 4px 8px;border: 1px solid #aaa;margin:0 5px;"{{/if}}>{{$smarty.section.loop.index+1}}</span>
                </a>
                {{/section}}
                {{else if $pager.current_page>10&&$pager.current_page+10>$pager.page_total}}
                {{section name=loop loop=$pager.page_total start=($pager.current_page/10)|string_format:"%d"*10}}
                <a href="/user_center/supply_list/page/{{$smarty.section.loop.index+1}}">
                    <span {{if $smarty.section.loop.index+1==$pager.current_page}}style="color:#fff;background:#FF6E03;border:#FF6E03;padding:4px 8px;margin:0 5px;"{{else}}style="padding: 4px 8px;border: 1px solid #aaa;margin:0 5px;"{{/if}}>{{$smarty.section.loop.index+1}}</span>
                </a>
                {{/section}}
                {{else}}
                {{section name=loop loop=10}}
                <a href="/user_center/supply_list/page/{{$smarty.section.loop.index+1}}">
                    <span {{if $smarty.section.loop.index+1==$pager.current_page}}style="color:#fff;background:#FF6E03;border:#FF6E03;padding:4px 8px;margin:0 5px;"{{else}}style="padding: 4px 8px;border: 1px solid #aaa;margin:0 5px;"{{/if}}>{{$smarty.section.loop.index+1}}</span>
                </a>
                {{/section}}
                {{/if}}
                {{if $pager.current_page<$pager.next_page}}
                <a href="/user_center/supply_list/page/{{$pager.next_page}}">
                    <span style="padding: 4px 8px;border: 1px solid #aaa;margin:0 5px;">下一页</span>
                </a>
                <a href="/user_center/supply_list/page/{{$pager.page_total}}">
                    <span style="padding: 4px 8px;border: 1px solid #aaa;margin:0 5px;">尾页</span>
                </a>
                {{/if}}
            </div>
            <div class="icon_wu" style="display: none;">
                <img src="{{$smarty.const.APP_URL}}templates/default/images/user_center/wuneirong_icon_03.png"><p>您暂时还未上传任何信息，现在去<a href="#">上传报价单</a>！</p>
            </div>
        </div>
    </div>
    <div style="clear:both;"></div>
	<!--底部start-->
	{{include file="{{$smarty.const.APP_PATH}}Home/View/User_center/user_center_footer.html"}}
	<!--底部end-->
</section>
<!-- 左侧下拉菜单js样式 -->
<script>
    // var wrap-menu-center=document.getElementsByClassName('wrap-menu-li1');
    //var menu_ul=wrap-menu-center.getElementsByTagName('ul');
    function changebn(obj){
            if(obj.nextElementSibling.style.display=='none'||obj.nextElementSibling.style.display==''){
                obj.nextElementSibling.style.display='block';
            }else{
                obj.nextElementSibling.style.display='none';
            }
        }
</script>
<!--AJAX删除并刷新列表-->
<script>
    function supply_del(id){
        //alert(id);return;
         var supply_id=id;  //ID
         var url='/user_center/ajax_supply_del';
         $.ajax({
            url: url ,
            data:{
                supply_id:supply_id
            },
            type:'POST',
            cache:false,
            dataType:'json',
            success:function(data){
                if(data.msg =="ok" ){
                    location.reload();
                    //self.location=document.referrer;
                }else{
                    alert(data.msg);return;
                }
            },
            error : function() {
                alert("AJAX异常！");
            }
         });
    }
</script>
</body>
</html>